Recognizing Hand Poses and/or Object Classes

ABSTRACT

There is a need to provide simple, accurate, fast and computationally inexpensive methods of object and hand pose recognition for many applications. For example, to enable a user to make use of his or her hands to drive an application either displayed on a tablet screen or projected onto a table top. There is also a need to be able to discriminate accurately between events when a user&#39;s hand or digit touches such a display from events when a user&#39;s hand or digit hovers just above that display. A random decision forest is trained to enable recognition of hand poses and objects and optionally also whether those hand poses are touching or not touching a display surface. The random decision forest uses image features such as appearance, shape and optionally stereo image features. In some cases, the training process is cost aware. The resulting recognition system is operable in real-time.

BACKGROUND

Object detection and recognition are difficult problems in the field of computer vision. Object detection involves determining the presence of one or more objects in an image of a scene. Image segmentation comprises identifying all image elements that are part of the same object in an image. Object recognition comprises assigning semantic labels to the detected objects. For example, to determine a class of objects that the object belongs to such as cell phones, pens, erasers, or staplers.

In a similar manner automatic recognition of hand poses in images is a difficult problem. Recognition of hand poses might be required for many different applications, such as interpretation of sign language, user interface control, and interpretation of hand poses and gestures in video conferencing.

There is a need to provide simple, accurate, fast and computationally inexpensive methods of object and hand pose recognition for many applications. For example, to enable a user to make use of his or her hands to drive an application either displayed on a tablet screen or projected onto a table top. There is also a need to be able to discriminate accurately between events when a user's hand or digit touches such a display from events when a user's hand or digit hovers just above that display.

The embodiments described below are not intended to be limited to implementations that solve any or all of the above noted disadvantages.

SUMMARY

The following presents a simplified summary of the disclosure in order to provide a basic understanding to the reader. This summary is not an extensive overview of the disclosure and it does not identify key/critical elements of the invention or delineate the scope of the invention. Its sole purpose is to present some concepts disclosed herein in a simplified form as a prelude to the more detailed description that is presented later.

There is a need to provide simple, accurate, fast and computationally inexpensive methods of object and hand pose recognition for many applications. For example, to enable a user to make use of his or her hands to drive an application either displayed on a tablet screen or projected onto a table top. There is also a need to be able to discriminate accurately between events when a user's hand or digit touches such a display from events when a user's hand or digit hovers just above that display. A random decision forest is trained to enable recognition of hand poses and objects and optionally also whether those hand poses are touching or not touching a display surface. The random decision forest uses image features such as appearance, shape and optionally stereo image features. In some cases, the training process is cost aware. The resulting recognition system is operable in real-time.

Many of the attendant features will be more readily appreciated as the same becomes better understood by reference to the following detailed description considered in connection with the accompanying drawings.

DESCRIPTION OF THE DRAWINGS

The present description will be better understood from the following detailed description read in light of the accompanying drawings, wherein:

FIG. 1 is a high level schematic diagram of a recognition system;

FIG. 2 is a schematic diagram of an example user interface apparatus;

FIG. 3 is a schematic diagram of another example user interface apparatus;

FIG. 4 is a block diagram of an example method of classifying an image;

FIG. 5 is a block diagram of another example method of classifying an image;

FIG. 6 a is a schematic diagram of an example decision tree;

FIG. 6 b is a schematic diagram of an image;

FIG. 7 is a block diagram of an example method of segmenting an image;

FIG. 8 is a block diagram of an example method of training a decision tree;

FIG. 9 illustrates an exemplary computing-based device in which embodiments of an image classification system may be implemented.

Like reference numerals are used to designate like parts in the accompanying drawings.

DETAILED DESCRIPTION

The detailed description provided below in connection with the appended drawings is intended as a description of the present examples and is not intended to represent the only forms in which the present example may be constructed or utilized. The description sets forth the functions of the example and the sequence of steps for constructing and operating the example. However, the same or equivalent functions and sequences may be accomplished by different examples.

Although the present examples are described and illustrated herein as being implemented in a user interface system for driving a software application or other apparatus, the system described is provided as an example and not a limitation. As those skilled in the art will appreciate, the present examples are suitable for application in a variety of different types of image classification systems.

An Exemplary System

FIG. 1 is a high level schematic diagram of an image processing system for classifying images of items. For example, this may be used for recognizing hand poses and/or objects. Images 100 are input to the image processing system 101. The images are of items to be classified or labeled as being of one a plurality of specified classes. For example, these classes comprise a plurality of classes of hand pose, such as hand poses with fingers spread out, hand poses with fingers clenched into a fist, hand poses with a pointing index finger etc. The classes may also comprise a plurality of classes of object such as might be found in an office environment. For example, coffee mugs, staplers, rulers, erasers, mobile communications devices, scissors and the like. In addition, the classes may be divided into those in which an item is touching a display surface and those in which an item is not touching a display surface. However, it is not essential to use these particular classes of item; any classes may be used.

The image processing system 101 comprises a learnt multi-class classifier and outputs labeled imaged 102. For example, if the image is of a particular hand pose, the labeled image may indicate which of a specified group of classes of hand pose this image belongs to.

Another Exemplary System

FIG. 2 is a schematic diagram of a user interface apparatus which may be used in conjunction with the image processing system of FIG. 1. A display 201 such as provided by a tablet personal computer is provided on a work surface 202. An image capture device 200 is provided above the work surface 202. Any suitable type of image capture device may be used. A non-exhaustive list of examples is: a mono camera, a stereo camera, a video camera, a web camera, a Z-camera (also known as a time-of-flight camera) and a laser range finder. The image capture device 200 is arranged to capture images of a user's hands or other objects positioned between the image capture device 200 and the display 201. The image processing system may be incorporated in the tablet personal computer and may be arranged to classify images captured by the image processing device 200. This classification information may then be used by a user interface in order to control the display 201 and also in order to drive a software application or other system via the tablet personal computer. For example, by recognizing hand poses and/or objects a user interface may be controlled in a particular manner. Information about whether the hand poses are touching a display surface or not may also be used by such a system to control a software application or other system. For example, this “touch/no-touch” information may be obtained by the image processing system described herein. Alternatively or in addition, it may be obtained using resistive touch overlays at the display surface or by any other touch-sensitive layer or other suitable means.

This example apparatus is described to illustrate how the output of the image processing system of FIG. 1 may be used. However, it is in no way essential to use the image processing system described herein for that purpose. It may be used for any system where image classification information is required.

Another Exemplary System

It is also possible to use the image processing system of FIG. 1 to control a display projected onto a surface as illustrated in FIG. 3 for example. A projector 301 projects a display 300 onto a surface 202 such as a table or other work surface. The projector is controlled by a personal computer 302 which also is in communication with an image capture device 200. The image capture device 200 may be a camera, video camera, stereo camera or the like and is arranged to capture images of items against a background of the display as described above with reference to FIG. 2.

Easy and natural interaction in the types of scenarios illustrated in FIGS. 1 and 2 requires accurate and efficient, real-time recognition of different hand poses and objects commonly found in office environments together with the ability to detect when and in what context the user is touching the display. For example, a user might make use of his or her hands together with common objects to drive a software application. A user is able to work on an electronic document for example using physical objects such as pens and erasers, and also manipulate it via hand gestures.

Recognizing different hand poses is challenging due to the large variability in lighting conditions, skin color, hand sizes, the presence of sleeves, etc. Furthermore, touch vs. non-touch discrimination must be robust with respect to different camera setups, hand poses and cases where the hands may or may not be holding objects.

Exemplary Method

FIG. 4 is a block diagram of an example method of classifying an image into one of a plurality of specified classes. An image is received (block 400) and segmented into a foreground region and a background region (block 401). Any suitable segmentation method may be used. The image may be received from any suitable type of image capture device as mentioned above including a Z-camera. That is the image may be a depth map from a Z-camera, laser range finder or the like.

For example, polarization information may be used to achieve the segmentation. In this case a first polarizing filter is positioned in front of an image capture device at which the image is captured. A second polarizing filter is used at a display such as the tablet personal computer of FIG. 2. Alternatively a display can be used which emits polarized light. The first and second polarizing filters are crossed with respect to one another so that light from the display is substantially blocked from entering the image capture device. Light reflected from any items such as hands or objects between the display and the image capture device is able to enter the image capture device. In this way the foreground region comprising image of the items may be identified using a thresholding operation or similar on the image.

Any other suitable method of segmentation may be used. For example, trained decision trees may be used as described in more detail later with reference to FIG. 7.

A non-exhaustive list of other suitable segmentation methods is: background subtraction, stereo-based segmentation, motion-based segmentation.

A plurality of decision trees which have been trained in advance are available to the process. This plurality of decision trees may be referred to as a decision forest. More detail about the process for training the decision trees is given later in this document, for example, with reference to FIG. 8. The decision trees may have been trained using a computational cost aware process although this is not essential.

A pre-trained decision tree is accessed and applied to each pixel (or other image element) in the foreground region of the image (block 402). The decision tree gives an outcome which is the index of the leaf reached. These outcomes are stored in a leaf image (block 403). A histogram over all the leaf indices is then computed for the foreground region of the leaf image and stored (block 404). This process if then repeated (block 409) for another decision tree until all of the available decision trees have been used.

The histograms are then concatenated (block 405) and input to a multi-class classifier (block 406) which outputs a classification result for the image comprising a labeled image (block 407) which is stored. The classification result may be input to a user interface (block 408) to drive a software application for example. However, this is not essential. The classification result may be used for any required purpose.

Any suitable multi-class classifier may be used at block 406. A non-exhaustive list of examples is: a nearest neighbor classifier; a nearest neighbor classifier with Bhatacharyya distance; support-vector machine, boosting, a further decision forest.

Another Exemplary Method

FIG. 5 is a block diagram of another example method of classifying an image into one of a plurality of specified classes. In this case stereo image pairs are input to the system and stereo information is thus available to the classification process.

A stereo image pair is received (block 500) and at least one image of the pair is segmented into a foreground region and a background region (block 501) such that a mask image is obtained. This mask image corresponds to an image of the stereo pair but with the mask acting to block out background regions of the image and allow foreground regions to remain. Any suitable segmentation method may be used as described above.

A pre-trained decision tree is accessed. This decision tree may comprise various tests including tests requiring stereo information. The decision tree is applied to each foreground pixel of one image of the stereo pair. The other image of the stereo pair and/or the mask image is accessed when required by the tests in the decision tree (block 502). The results of the application of the decision tree comprise a classification outcome for each foreground pixel. These results are stored in a leaf image (block 503). A histogram over the classes is then computed for the foreground region and stored (block 504). This process is then repeated using another decision tree (block 509) until a plurality of decision trees have been applied.

The histograms are concatenated (block 505) and input to a multi-class classifier (block 506) which is of any suitable type as mentioned above. The resulting labeled image (507) is stored and optionally, information about the classification result is input to a user interface (block 508).

In some embodiments, a touch map may also be received (in addition to a stereo or mono image from the image capture device). This touch map comprises output from a touch-sensitive layer at the display. In this case the decision tree tests may comprise tests requiring information from the touch-map.

In a particular example, given an input image, a decision tree using tests t_(i) is applied to each pixel of the image leading to a leaf label for each pixel. The leaf label corresponds to the index of the leaf reached in the tree. A histogram over all such labels for the foreground region is computed and classified using a nearest neighbor classifier with Bhattacharyya distance. This method is extended to use multiple decision trees (a decision forest) by concatenating the histograms prior to classification.

The methods described above with reference to FIGS. 4 and 5 each provide a unified process and a unified framework for recognizing hand poses, objects and optionally also, touch/no-touch situations in respect of the hand poses. One set of pre-trained decision trees are used and it is not necessary to use for example, a hand pose recognition module a separate object recognition module, and a separate touch/no-touch recognition module. This reduces computational expense and provides a fast and effective recognition system that may be used in real time to drive a user interface for example. Previously, the problems of recognizing object classes, hand gestures or touch detection have been treated as separate problems.

FIG. 6 a is a schematic diagram of a decision tree. It comprises a root node with two branches. Each branch ends in a node which stores a test to be computed. That test has two possible outcomes. Thus the decision tree is a binary tree where each non-terminal node 600 evaluates a binary test based on an image feature. Each leaf node 601 corresponds to a classification outcome, classifying a pixel to which the decision tree has been applied, into one of the specified classes. Any suitable image features may be used. For example, appearance image features, shape image features and stereo image features. More detail about examples of possible image features is given later in the document.

FIG. 6 b is a schematic diagram of a segmented image to which the decision tree of FIG. 6 a may be applied. A background region 603 of the image is known and the decision tree is applied to each pixel of the foreground region 602. For example, pixel 604 shows a pixel to which the decision tree is applied.

As mentioned above, the segmentation process may comprise using decision trees. This is now described with reference to FIG. 7. One or more training segmentation masks are received (block 700). These comprise images which have already been correctly segmented into foreground and background regions. The training segmentation masks are used to train a decision tree (block 701) in order to classify pixels or other image elements as being foreground or background. The learnt decision tree is then applied to a test image (an image which it is required to segment) (block 702) and a leaf image comprising the results is obtained (block 703). A modified GrabCut algorithm is then applied (block 704) as described in more detail below to obtain a segmented image. The resulting mask image is stored (block 705).

Using this learning procedure to perform the segmentation enables the segmentation process to deal with variable backgrounds and account for factors such as camera movement and change in lighting conditions. As mentioned above with reference to FIG. 7 a learnt decision tree is applied to a test image and a leaf image is obtained. A method based on GrabCut (which is described in detail in C. Rother et al. “GrabCut”: interactive foreground extraction using iterated graph cuts. ACM Trans. Graphics, 23(3):309-314, August, 2004.) is then used. The method uses the output of the decision tree rather than a mixture of Gaussians as unary potentials. Also, the method described herein uses histograms over the leaf labels. The system is initialized either manually or automatically using aggregate foreground and background histograms across a training set. The segmentation and the foreground/background histograms are alternately updated for a numbers of iterations (which may be as few as two iterations). The features used in this segmentation process may be the same appearance features as are used in the classification stage although this is not essential.

As mentioned above the decision trees for the image classification process are pre-trained. This is done using a plurality of images of items of known class which have already been segmented into foreground and background regions. These masked training images are received (block 800) and a pool of randomly selected test candidates are generated. These tests are suitable for use at nodes of a decision tree. For example, several hundred test candidates may be generated.

A decision tree is then formed by selecting test candidates from the pool. At each decision tree leaf, a test candidate selected from the pool is appended. The selection is made on the basis of classification accuracy achieved and optionally also on the basis of an evaluation cost (block 802). The evaluation cost is an indication of a cost of computing the test. For example, if the test involves examining stereo image features then it may generally be more computationally expensive than a test involving only appearance image features.

The process of selecting and appending test candidates is repeated until no further leaves are appended (block 803) and the resulting decision tree is stored (block 804).

By using a cost-aware training process as mentioned above, test candidates that are more computationally expensive are used relatively sparsely in the tree and tend to occur more frequently towards leaf nodes of the tree. In this way, more computationally expensive tests are used only when necessary. Thus the need to compute a dense stereo map from the received images is avoided, unlike the situation in many earlier recognition systems using stereo information. In addition, because computationally complex features are only computed at image elements where required to improve class discrimination, real-time performance is enabled. Previously, decision trees have not been trained in this manner. For example, a weighted version of the expected cost of evaluating the tree may be used during the learning process. In this way tree learning now minimizes a trade off of discriminatory performance and speed. This may be implemented by dividing the entropy gain for a test by a penalty value accounting for its computational cost. In this way more expensive tests are pushed toward the bottom of the tree and are applied to fewer image elements. For example, in some embodiments described herein, evaluation of tests for the stereo cues is more costly than evaluation appearance or shape tests. The penalization of stereo tests allows a smooth blend to be achieved between using stereo features and not using them.

In decision trees, in contrast to many other classifiers, not every test is applied to every observation (such as an image element). Instead, for every image element, only the tests along one path through the tree are evaluated. Thus features such as stereo features are computed on-demand rather than for example, computing a complete disparity map for the image.

The decision forest may be referred to as a random forest because of the randomness in the learning process (random generation of the pool of test candidates). Examples of random forests are described in detail in L. Breiman, “Random Forests” Machine Learning 45:5-32, 2001. A strength of random forests is that the trees in the forest capture different cues due to the randomness in the learning process. Each tree may be trained independently of the others which allows for parallel training of several trees. In each training iteration a pool of randomly generated test candidates is formed and at each leaf the test candidate with the highest entropy gain may be appended. This process may be continued until no further leaves are appended.

Examples of tests which may be used to form the decision trees are now described. These tests use image features such as visual cues related to any one or more of shape, depth and appearance. For example, texture filters are applied to obtain features f_(i) which are used in the tests of the decision tree nodes. A test here refers to a Boolean decision rule applied to a feature vector. For example, the features used are texture filters and the tests compare these with two randomly selected thresholds. Thus, the tests may be of the following form:

t(x,y)=θ₁ <f _(i)(x,y)<θ₂,  (1)

where f_(i)(x,y) is a feature function for position (x,y) in the image and θ₁ and θ₂ denote thresholds.

The features f₁ may be of different forms. For example, either they are the difference of two randomly selected pixels p₁ and p₂ within a bounding box centered in (x,y) (type 1) or they are just the value of one randomly selected pixel in this area (type 2):

$\begin{matrix} {{f_{1}\left( {x,y} \right)} = {p_{1}\left( {{x + x^{\prime}},{y + y^{\prime}}} \right)}} \\ {{- {p_{2}\left( {{x + x^{''}},{y + y^{''}}} \right)}}\mspace{14mu} \left( {{type}\mspace{14mu} 1} \right)} \\ {{f_{2}\left( {x,y} \right)} = {{p_{1}\left( {{x + x^{\prime}},{y + y^{\prime}}} \right)}\mspace{14mu} \left( {{type}\mspace{14mu} 2} \right)}} \end{matrix}$

where p₁(x,y) and p₂(x,y) denote the values of pixels at these positions in specified color channels. All parameters and the type of the tests are randomly chosen in the generation of the test candidates. These tests may be applied to different visual cues and slightly adapted to the specific character of the cue. For example, three different visual cues may be used. Those visual cues being color (appearance), shape and depth as now described:

Color. To capture appearance information, tests are applied to RGB color channels. In the training process, 90% of all randomly generated appearance features may be features of type 1 (i.e. pixel differences), and the remaining ten percent may be absolute values. However, this is not essential. Different ratios of type 1 features and absolute values may be used. The advantage of pixel differences for appearance cues is a better invariance with respect to lighting changes.

Shape. A binary mask obtained from the segmentation stage may be used as an additional channel in the recognition phase to capture shape information. The tests applied to this mask may be of the same type as those applied to the appearance channels.

Depth. In an example, given a pair of rectified stereo images, depth information can be obtained by finding the correspondence of the pixels in the left image to the pixels in the right image for every scanline. For every pixel p_(r) in a scanline of the right image, the corresponding pixel p_(l) in the left image is determined within a certain disparity range Δ. The displacement of p_(r) to p_(l) is the disparity (d=p_(r)−p_(l)) and is inversely proportional to the distance of the observed point in the image to the camera. To determine the correspondences of the pixel pairs, the sums of squared distances (SSD) between all pairs of pixels of a scanline is calculated and the optimal alignment of all pixels of the left scanline to all pixels of the right scanline is determined by algorithms such as dynamic programming or graph cuts.

It is possible to directly incorporate high quality disparity maps in the methods described herein. However, a faster way to incorporate stereo information is to use mean and variance disparities or winner takes all (WTA) disparities. For these, the calculation does not require any spatial coherence and therefore the computation is much cheaper.

The mean and the variance are calculated as follows:

$\overset{\_}{d} = {{\sum\limits_{d = 0}^{\Delta}\; {{d \cdot {p(d)}}\mspace{31mu} \sigma_{d}^{2}}} = {\sum\limits_{d = 0}^{\Delta}\; {\left( {d - \overset{\_}{d}} \right)^{2} \cdot {p(d)}}}}$

where

${p(d)} = {\frac{1}{Z}{\exp \left( {- {{SSD}\left( {p_{r},{p_{r} + d}} \right)}} \right)}}$

and SSD is the sum of squared distances of 3×7 patches (or other sized patches) around the pixels in the current scanline of the left and right images. Z is a normalization factor. WTA disparities are calculated as {circumflex over (d)}=arg max_(d)p(d).

To calculate the mean, variance, and WTA disparities, for each pixel matching costs for the whole disparity range Δ have to be calculated. To reduce the number of necessary computations further, a new stereo feature is used by subsampling the search interval Δ into a small number of allowed disparities and extracting a number of slices of the matching costspace for fixed disparities d_(i). These are referred to herein as ‘disparity cost slices’ (DCS).

In one example, as stereo cues contain absolute values such as depth/distance to the camera, the features used in the test candidates for the tree training are chosen such that 50% of the features are of type 2 (i.e. absolute disparity/SSD cost) and the remaining 50% of the features are absolute disparity/cost differences. However, these proportions are examples only and other proportions may be used.

Exemplary Computing-Based Device

FIG. 9 illustrates various components of an exemplary computing-based device 900 which may be implemented as any form of a computing and/or electronic device, and in which embodiments of an image classification system may be implemented.

The computing-based device 900 comprises one or more inputs 901 which are of any suitable type for receiving images.

Computing-based device 900 also comprises one or more processors 903 which may be microprocessors, controllers or any other suitable type of processors for processing computing executable instructions to control the operation of the device in order to classify images of items into specified classes. Platform software comprising an operating system 904 or any other suitable platform software may be provided at the computing-based device to enable application software 905 to be executed on the device.

The computer executable instructions may be provided using any computer-readable media, such as memory 907. The memory is of any suitable type such as random access memory (RAM), a disk storage device of any type such as a magnetic or optical storage device, a hard disk drive, or a CD, DVD or other disc drive. Flash memory, EPROM or EEPROM may also be used.

An output is also provided such as an audio and/or video output to a display system integral with or in communication with the computing-based device. The display system may provide a graphical user interface 906, or other user interface of any suitable type although this is not essential.

The term ‘computer’ is used herein to refer to any device with processing capability such that it can execute instructions. Those skilled in the art will realize that such processing capabilities are incorporated into many different devices and therefore the term ‘computer’ includes PCs, servers, mobile telephones, personal digital assistants and many other devices.

The methods described herein may be performed by software in machine readable form on a storage medium. The software can be suitable for execution on a parallel processor or a serial processor such that the method steps may be carried out in any suitable order, or simultaneously.

This acknowledges that software can be a valuable, separately tradable commodity. It is intended to encompass software, which runs on or controls “dumb” or standard hardware, to carry out the desired functions. It is also intended to encompass software which “describes” or defines the configuration of hardware, such as HDL (hardware description language) software, as is used for designing silicon chips, or for configuring universal programmable chips, to carry out desired functions.

Those skilled in the art will realize that storage devices utilized to store program instructions can be distributed across a network. For example, a remote computer may store an example of the process described as software. A local or terminal computer may access the remote computer and download a part or all of the software to run the program. Alternatively, the local computer may download pieces of the software as needed, or execute some software instructions at the local terminal and some at the remote computer (or computer network). Those skilled in the art will also realize that by utilizing conventional techniques known to those skilled in the art that all, or a portion of the software instructions may be carried out by a dedicated circuit, such as a DSP, programmable logic array, or the like.

Any range or device value given herein may be extended or altered without losing the effect sought, as will be apparent to the skilled person.

It will be understood that the benefits and advantages described above may relate to one embodiment or may relate to several embodiments. It will further be understood that reference to ‘an’ item refers to one or more of those items.

The steps of the methods described herein may be carried out in any suitable order, or simultaneously where appropriate. Additionally, individual blocks may be deleted from any of the methods without departing from the spirit and scope of the subject matter described herein. Aspects of any of the examples described above may be combined with aspects of any of the other examples described to form further examples without losing the effect sought.

It will be understood that the above description of a preferred embodiment is given by way of example only and that various modifications may be made by those skilled in the art. The above specification, examples and data provide a complete description of the structure and use of exemplary embodiments of the invention. Although various embodiments of the invention have been described above with a certain degree of particularity, or with reference to one or more individual embodiments, those skilled in the art could make numerous alterations to the disclosed embodiments without departing from the spirit or scope of this invention. 

1. A method comprising: receiving at least one image of an item to be classified as one of a plurality of specified classes; accessing a plurality of decision trees which have been formed in a training process using information about classification accuracy and information about computational cost; classifying the image into one of the classes at least by applying the plurality of decision trees to at least part of the image; and storing the classified image.
 2. A method as claimed in claim 1 which further comprises segmenting the at least one image to identify a foreground region and applying the plurality of decision trees to that foreground region.
 3. A method as claimed in claim 1 wherein the process of receiving at least one image comprises receiving a stereo image pair.
 4. A method as claimed in claim 1 wherein the process of receiving at least one image comprises receiving a depth map.
 5. A method as claimed in claim 1 which further comprises receiving a touch map and wherein the process of classifying the image comprises using information from the touch map.
 6. A method as claimed in claim 1 wherein the plurality of specified classes comprises classes in which items are touching a display surface and classes in which items are not touching a display surface.
 7. A method as claimed in claim 1 wherein the plurality of specified classes comprise a plurality of classes of hand poses and a plurality of classes of objects.
 8. A method as claimed in claim 1 which further comprises inputting information about the classified image into a user interface.
 9. A method as claimed in claim 1 wherein the step of accessing the decision trees comprises accessing decision trees comprising tests using any of appearance and shape image features.
 10. A method as claimed in claim 3 wherein the step of accessing the decision trees comprises accessing decision trees comprising tests using appearance image features, shape image features and stereo image features.
 11. A method as claimed in claim 4 wherein the step of accessing the decision trees comprises accessing decision trees comprising tests using depth map features.
 12. A method as claimed in claim 1 wherein the step of classifying the image comprises, for each decision tree, computing a histogram using results of applying that decision tree to at least part of the image.
 13. A method as claimed in claim 12 wherein the step of classifying the image further comprises, concatenating the histograms and inputting the concatenated histogram to a multi-class classifier.
 14. A method comprising: receiving at least one image of an item to be classified as one of a plurality of specified classes, those classes comprising hand pose classes and object classes; accessing a plurality of decision trees which have been formed in a training process using information at least about classification accuracy; classifying the image into one of the classes using a unified recognition process at least by applying the plurality of decision trees to at least part of the image; and storing the classified image.
 15. A method as claimed in claim 14 wherein the process of accessing the plurality of decision trees comprises accessing decision trees which have been formed in a training process using information about classification accuracy and information about computational cost.
 16. A method as claimed in claim 14 wherein the process of receiving at least one image comprises receiving a stereo image pair.
 17. A method as claimed in claim 14 which further comprises inputting information about the classified image into a user interface in order to control a display.
 18. A method as claimed in claim 17 wherein the process of receiving the image comprises receiving an image comprising one or more items against a background of the display.
 19. An apparatus comprising an input arranged to receive at least one image of an item to be classified as one of a plurality of specified classes; a memory arranged to store a plurality of decision trees which have been formed in a training process using information about classification accuracy and information about computational cost; and a processor arranged to classifying the image into one of the classes at least by applying the plurality of decision trees to at least part of the image, and to store the classified image.
 20. An apparatus as claimed in claim 19 which further comprises a user interface arranged to provide a display and wherein the processor is arranged to provide information about the classified image to the user interface in order to control the display. 